<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  xmlns:wix="http://schemas.microsoft.com/wix/2006/wi"
  xmlns="http://schemas.microsoft.com/wix/2006/wi"
  exclude-result-prefixes="wix"
>
  <xsl:output method="xml" indent="yes" omit-xml-declaration="no"/>
  <xsl:template match="wix:Wix">

    <xsl:variable name="components" select="wix:Fragment/wix:DirectoryRef//wix:Directory/wix:Component"/>

    <Wix>
      <Fragment>
        <ComponentGroup Id="ComponentFeatures">
          <xsl:for-each select="$components">
            <xsl:if test="@Id != 'Kadastr.Charger.Service.exe'">
              <ComponentRef Id="{@Id}" />
            </xsl:if>
          </xsl:for-each>
        </ComponentGroup>
      </Fragment>
    </Wix>
  </xsl:template>

</xsl:stylesheet>